<<<<<<< HEAD
// 后端接口
import Mock from "mockjs";
import course from "./courseDate";

// 渲染页面
Mock.mock(/\/getcourse/, "get", course.getCourseData);
// 删除单个接口
Mock.mock(/\/delete/, "post", course.deleteData);
// 批量删除
Mock.mock(/\/batchdelete/, "post", course.batchDeleteData);
// 修改接口
Mock.mock(/\/updatehander/, "post", course.updateData);
=======
// 写我们后端接口
import Mock from 'mockjs'
import home from './homeData'
// home的数据接口   /gethome
// 参数1 接口名称的正则  参数2 请求类型  参数3 返回的数据
Mock.mock(/\/gethome/,'get',home.getHomeData)
// 删除单个
Mock.mock(/\/delete/,'post',home.deleteDate)
// 批量删除
Mock.mock(/\/batchdelete/,'post',home.batchDeleteData)
// 添加接口
Mock.mock(/\/updatehander/,'post',home.upDate)
>>>>>>> 21fcf4125d81d09fe5f5af0867f669fea4339e75
